package com.tjh.spring5;

/**
 * Create by koala on 2021-02-16
 * day05：使用有参数构造注入
 */
public class Orders {

    //属性
    private String oname;
    private String address;

    //有参数构造
    public Orders(String oname, String address) {
        this.oname = oname;
        this.address = address;
    }

    public void ordersTest() {
        System.out.println(oname + "::" + address);
    }

}
